<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0" />
		<title>Document</title>
		<script src="./lib/echarts.min.js"></script>
	</head>
	<body>
		<div style="width: 600px; height: 400px"></div>
		<script type="text/javascript">
			let mCharts = echarts.init(document.querySelector('div'));

			let option = {
				series: [
					{
						type: 'gauge',
						data: [
							{
								value: 97,
								itemStyle: {
									color: 'green',
								},
							}, //每一个对象就代表一个指针
							{
								value: 85,
								itemStyle: {
									//控制指针样式
									color: 'pink',
								},
							},
						],
						min: 50, //min max 控制仪表盘数值范围
					},
				],
			};
			mCharts.setOption(option);
		</script>
	</body>
</html>
